﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Aspfm.Print
{
    [Serializable()]
    public class ApsfmXmlSource
    {
        public string datakey = "";
        public string connkey = "";
        public string sqltype = "";
        public int datatable = 0;
        public string sqlcmd = "";
        public int foreachrow = -1;
    }
    [Serializable()]
    public class AspfmXml
    {
        public List<ApsfmXmlSource> xmlSourceList = null;

        public static AspfmXml GetConfig(string configName)
        {
            if (System.IO.File.Exists(configName))
            {
                return Aspfm.Main.SerializeHelper.Load(typeof(AspfmXml), configName) as AspfmXml;
            }
            return null;
        }
    }
}
